package com.iftest;

public class IfTest {
    public static void main(String[] args) {
        int x = 10;
        int b = 0;
        b = x < 8 ? 10 : 30;
        System.out.println(b);

    }
}
